<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript">

$(document).ready(function(){
	<c:if test="${param.returnCd=='0000' }">alert('수정했습니다');</c:if>	
	$("#p_phone1,#p_phone2,#p_phone3, #p_tel1, #p_tel2, #p_tel3, #wait_time").AutoTab().ForceNumericOnly();
	$("#general, #day1 , #day_a_1 , #day_a_2 , #day_a_3 , #day_a_4 , #day_a_5 , #day_a_6 , #day_a_7").AutoTab().ForceNumericOnly();
	
});

//데이터 저장
function submitData(){
	if(confirm("저장하시겠습니까?")){
		$("#frmData").submit();	
	}
}

//부가정보 추가
function addArray(target,type){
	var html="";
	if("1"==type){
		html="<div class='paa1'><input name='paa_types' type='hidden' value='1' />&nbsp;&nbsp;<input type='text' name='paa_descs' maxlength='50' size='20' value=''/>(은행명 계좌번호 예금주)<a href='#' onclick='$(this).parent().remove();return false;'>삭제</a></div>";
	}else if("2"==type){
		html="<div class='paa2'><input name='paa_types' type='hidden' value='2' />&nbsp;&nbsp;<input name='paa_type' type='hidden' value='2' /><input type='text' name='paa_descs' maxlength='50' size='20' value=''><a href='#' onclick='$(this).parent().remove();return false;'>삭제</a></div>";
	}else if("3"==type){
		html="<div class='paa3'><input name='paa_types' type='hidden' value='3' />&nbsp;&nbsp;<input name='paa_type' type='hidden' value='2' /><input type='text' name='paa_descs' maxlength='50' size='20' value=''><a href='#' onclick='$(this).parent().remove();return false;'>삭제</a></div>";
	}else if("4"==type){
		html="<div class='paa4'><input name='paa_types' type='hidden' value='4' />&nbsp;&nbsp;<input name='paa_type' type='hidden' value='2' /><input type='text' name='paa_descs' maxlength='50' size='20' value=''><a href='#' onclick='$(this).parent().remove();return false;'>삭제</a></div>";
	}
	$("."+target+":last").after(html);
}
</script>

캠핑관리 ▶ 새캠핑만들기
<br/>
<br/>

<form action="./peti200T.do" id="frmData" name="frmData" enctype="multipart/form-data" method="post">


캠핑정보
	<table width="700" border="0" cellspacing="1" cellpadding="2"
		class="class_admin_table">
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center"><b>캠핑아이디</b></td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp;<input
				type="text" name="p_id" id="p_id" size="30" maxlength="30" value=""></td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center"><b>캠핑비번</b></td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp;<input
				type="password" name="p_pwd" size="30" maxlength="30" value="" style="ime-mode:inactive">
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">캠핑명</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp;<input
				type="text" name="p_nm" maxlength="50" size="30" value=""></td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">대표자명</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp;<input
				type="text" name="p_usr_nm" maxlength="50" size="30" value=""></td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">홈페이지주소</td>
			<td height="25" colspan="3" class="class_admin_table_blank">&nbsp;&nbsp;
				http://<input
				type="text" name="homepage_url" size="30" value=""></td>
			
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">핸드폰</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp;
				<input type="text" name="p_phone1" id="p_phone1" maxlength="3" size="8" value="">-
				<input type="text" name="p_phone2" id="p_phone2" maxlength="4" size="8" value="">-
				<input type="text" name="p_phone3" id="p_phone3" maxlength="4" size="8" value="">
			</td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">전화번호</td>
			<td height="25" class="class_admin_table_blank">&nbsp;&nbsp;
				<input type="text" name="p_tel1" id="p_tel1" maxlength="4" size="8" value="">-
				<input type="text" name="p_tel2" id="p_tel2" maxlength="4" size="8" value="">-
				<input type="text" name="p_tel3" id="p_tel3" maxlength="4" size="8" value="">
			</td>
		</tr>
		</table>

	<br> 예약관련
	<table width="700" border="0" cellspacing="1" cellpadding="2"
		class="class_admin_table">
		<tr class="hide">
			<td height="25" class="class_admin_table_head" width="100"
				align="center">캠핑로고</td>
			<td height="25" class="class_admin_table_blank" >&nbsp;&nbsp;<input
				type="file" name="p_logo" style="width: 70%;" class="gray">
			</td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">하단로고</td>
			<td height="25" class="class_admin_table_blank" >&nbsp;&nbsp;<input
				type="file" name="footer_logo" style="width: 70%;" class="gray">
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center" style="color: red">sms 경고창 띄우기</td>
			<td class="class_admin_table_blank" >&nbsp;&nbsp; 
				<input name="sms_alter_yn" type="text" value="50"/>
			</td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center" style="color: red">sms 수량 없을때 발송금지</td>
			<td class="class_admin_table_blank" >&nbsp;&nbsp; <label><input
				type="radio" name="sms_send_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="sms_send_yn" value="N" <c:if test="${map.sms_send_yn=='N' }">checked="checked"</c:if>> 사용안함</label>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">팝업 이미지</td>
			<td colspan="3" height="25" class="class_admin_table_blank" >&nbsp;&nbsp;<input
				type="file" name="event_img" id="event_img" style="width: 70%;" class="gray">
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center" style="color: red">전체 배경이미지</td>
			<td colspan="3" height="25" class="class_admin_table_blank" >&nbsp;&nbsp;<input
				type="file" name="c_back_img" id="c_back_img" style="width: 70%;" class="gray">
				<c:if test="${!empty map.c_back_img && ''!= map.c_back_img}"><br/>
				<img src="${map.c_back_img }" width="200"><br/>
				<label><input name="del_c_back_img" id="del_c_back_img" value="${map.c_back_img }" type="checkbox" /> 이미지 삭제(${map.c_back_img })</label>
				</c:if>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">예약기능</td>
			<td class="class_admin_table_blank" colspan="3" >&nbsp;&nbsp; <label><input
				type="radio" name="reservation_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="reservation_yn" value="N"> 사용안함</label>
			</td>
<!-- 			<td height="25" class="class_admin_table_head" width="100" -->
<!-- 				align="center">사이트타입 아이콘</td> -->
<!-- 			<td class="class_admin_table_blank" >&nbsp;&nbsp; <label><input -->
<!-- 				type="radio" name="p_ico_yn" value="Y" checked="checked"> 사용함</label> <label><input -->
<!-- 				type="radio" name="p_ico_yn" value="N"> 사용안함</label> -->
<!-- 			</td> -->
		</tr>
		<tr>
<!-- 			<td height="25" class="class_admin_table_head" width="100" -->
<!-- 				align="center">요금설정(비수기주중)</td> -->
<!-- 			<td class="class_admin_table_blank" >&nbsp;&nbsp; <label><input -->
<!-- 				type="radio" name="pm_nm_yn" value="Y" checked="checked"> 보이기</label> <label><input -->
<!-- 				type="radio" name="pm_nm_yn" value="N" > 숨기기</label> -->
<!-- 			</td> -->
			<td height="25" class="class_admin_table_head" width="100"
				align="center">할인율설정</td>
			<td class="class_admin_table_blank" colspan="3">&nbsp;&nbsp; <label><input
				type="radio" name="pm_dc_yn" value="Y" checked="checked"> 보이기</label> <label><input
				type="radio" name="pm_dc_yn" value="N" > 숨기기</label>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">예약가능일</td>
			<td class="class_admin_table_blank">&nbsp;&nbsp; <select
				name="reservation_use_month">
					<option value="0" selected>0</option>
					<option value="1">1</option>
					<option value="2">2</option>
					<option value="3">3</option>
					<option value="4">4</option>
					<option value="5">5</option>
					<option value="6">6</option>
					<option value="7">7</option>
					<option value="8">8</option>
					<option value="9">9</option>
					<option value="10">10</option>
					<option value="11">11</option>
					<option value="12">12</option>
				</select> 개월(0이면 제한없음)
			</td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">금요일요금사용</td>
			<td class="class_admin_table_blank" >&nbsp;&nbsp; <label><input
				type="radio" name="friday_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="friday_yn" value="N" <c:if test="${map.friday_yn=='N' }">checked="checked"</c:if>> 사용안함</label>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">등록일1</td>
			<td class="class_admin_table_blank" >
				<input name="reg_dt1" value="${map.reg_dt1 }" type="text"/>
			</td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">등록일2</td>
			<td class="class_admin_table_blank" >&nbsp;&nbsp;
				<input name="reg_dt2" value="${map.reg_dt2 }" type="text"/>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">예약달력</td>
			<td class="class_admin_table_blank">&nbsp;&nbsp; <label><input
				type="radio" name="reservation_cal" value="D" checked="checked"> 일반</label> <label><input
				type="radio" name="reservation_cal" value="N"> 이월</label>
			</td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">예약시 확인 팝업띄워주기(신규)</td>
			<td class="class_admin_table_blank">&nbsp;&nbsp; <label><input
				type="radio" name="reservation_pop_yn" value="N" checked="checked"> 팝업없음</label> <label><input
				type="radio" name="reservation_pop_yn" value="Y" <c:if test="${map.reservation_pop_yn=='Y' }">checked="checked"</c:if>> 팝업띄우기</label>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center" style="color: red">단계<br/>텍스트<br/>이미지
			</td>
			<td class="class_admin_table_blank" colspan="3">&nbsp;&nbsp;
				 1단계&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2단계
				<br/>&nbsp;&nbsp;  
				<label><input type="radio" name="view_type1" value="T" checked="checked"> 1.선택박스</label> 
				<label><input type="radio" name="view_type2" value="T" checked="checked"> 2.선택박스</label>
				<br/>&nbsp;&nbsp; 
				<label><input type="radio" name="view_type1" value="I" <c:if test="${map.view_type=='I' }">checked="checked"</c:if>> 1.선택박스</label>
				<label><input type="radio" name="view_type2" value="I" <c:if test="${map.view_type=='I' }">checked="checked"</c:if>> 2.선택박스</label>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">툴팁여부</td>
			<td class="class_admin_table_blank" colspan="3">&nbsp;&nbsp; <label><input
				type="radio" name="tooltip_yn" value="Y" checked="checked"> 보여주기</label> <label><input
				type="radio" name="tooltip_yn" value="N" > 숨기기</label>
			</td>
		</tr>
		<tr style="display: none;">
			<td height="25" class="class_admin_table_head" width="100"
				align="center">가격정보공개</td>
			<td class="class_admin_table_blank" colspan="3">
				&nbsp;&nbsp; 비수기<label><input
				type="radio" name="busy1_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="busy1_yn" value="N" > 사용안함</label><br/>
				&nbsp;&nbsp; 준수기<label><input
				type="radio" name="busy2_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="busy2_yn" value="N" > 사용안함</label><br/>
				&nbsp;&nbsp; 성수기<label><input
				type="radio" name="busy3_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="busy3_yn" value="N" > 사용안함</label>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">결제방법</td>
			<td class="class_admin_table_blank" colspan="3">&nbsp;&nbsp; <label><input
				type="checkbox" name="pay_type1_yn" value="Y"> 카드</label> <label><input
				type="checkbox" name="pay_type2_yn" value="Y"> 이체</label> <label><input
				type="checkbox" name="pay_type3_yn" value="Y"> 무통장</label>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">입금계좌정보</td>
			<td class="class_admin_table_blank" width="250" colspan="3">
				&nbsp;&nbsp;<a href="#" onclick="addArray('paa1','1');return false;">추가</a><br/>
				<div class="paa1"><input name="paa_types" type="hidden" value="1" />
					&nbsp;&nbsp;<input type="text" name="paa_descs" maxlength="50" size="20" value="">(은행명 계좌번호 예금주)
				</div>
			</td>
		</tr>
		<tr>
<!-- 			<td height="25" class="class_admin_table_head" width="100" -->
<!-- 				align="center">픽업요청</td> -->
<!-- 			<td class="class_admin_table_blank" >&nbsp;&nbsp; <label><input -->
<!-- 				type="radio" name="pickup_yn" value="Y" checked="checked"> 사용함</label> <label><input -->
<!-- 				type="radio" name="pickup_yn" value="N"> 사용안함</label> -->
<!-- 			</td> -->
			<td height="25" class="class_admin_table_head" width="100"
				align="center">캠핑도착시간</td>
			<td class="class_admin_table_blank" colspan="3">&nbsp;&nbsp; <label><input
				type="radio" name="end_time_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="end_time_yn" value="N"> 사용안함</label>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">출발지역</td>
			<td class="class_admin_table_blank" >&nbsp;&nbsp; <label><input
				type="radio" name="start_time_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="start_time_yn" value="N"> 사용안함</label>
			</td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">E-mail</td>
			<td class="class_admin_table_blank" >&nbsp;&nbsp; <label><input
				type="radio" name="email_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="email_yn" value="N"> 사용안함</label>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">기타요청사항</td>
			<td class="class_admin_table_blank" >&nbsp;&nbsp; <label><input
				type="radio" name="etc_req_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="etc_req_yn" value="N"> 사용안함</label>
			</td>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">휴대폰인증</td>
			<td class="class_admin_table_blank" >&nbsp;&nbsp; <label><input
				type="radio" name="phone_yn" value="Y" checked="checked"> 사용함</label> <label><input
				type="radio" name="phone_yn" value="N"> 사용안함</label>
			</td>
		</tr>
		<tr style="display: none;">
			<td height="25" class="class_admin_table_head" width="100"
				align="center">픽업장소</td>
			<td class="class_admin_table_blank" colspan="3">
				&nbsp;&nbsp;<a href="#" onclick="addArray('paa2','2');return false;">추가</a><br/>
				<div class="paa2"><input name="paa_types" type="hidden" value="2" />&nbsp;&nbsp;<input name="paa_descs" size="20" maxlength="30" /></div>
			</td>
		</tr>
		<tr style="display: none;">
			<td height="25" class="class_admin_table_head" width="100"
				align="center">픽업정보</td>
			<td class="class_admin_table_blank" colspan="3">
				&nbsp;&nbsp;<a href="#" onclick="addArray('paa3','3');return false;">추가</a><br/>
				<div class="paa3"><input name="paa_types" type="hidden" value="3" />&nbsp;&nbsp;<input name="paa_descs" size="20" maxlength="30" /></div>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">캠핑도착시간</td>
			<td class="class_admin_table_blank" colspan="3">
				&nbsp;&nbsp;<a href="#" onclick="addArray('paa4','4');return false;">추가</a><br/>
				<div class="paa4"><input name="paa_types" type="hidden" value="4" />&nbsp;&nbsp;<input name="paa_descs" size="20" maxlength="30" /></div>
			</td>
		</tr>
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center">대기시간</td>
			<td class="class_admin_table_blank" colspan="3">&nbsp;&nbsp; <input
				type="text" name="wait_time" id="wait_time" maxlength="2" size="3" value=""> 시간
			</td>
		</tr>
	</table>

	<br> 환불관련
	<table width="700" border="0" cellspacing="1" cellpadding="2"
		class="class_admin_table">
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center"><b>환불</b></td>
			<td class="class_admin_table_blank" colspan="3" align="center">
				<table width="550" border="0" cellspacing="1" cellpadding="2"
					class="class_admin_table">
					<tr>
						<td class="class_admin_table_head">일반</td>
						<td class="class_admin_table_blank" align="center" colspan="7"><input
							type="text" name="general" id="general" maxlength="3" size="5" value="">%</td>
					</tr>
					<tr>
						<td class="class_admin_table_head">당일</td>
						<td class="class_admin_table_blank" align="center"><input
							type="text" name="day1" id="day1" maxlength="3" size="5" value="">%</td>
						<td class="class_admin_table_head">1일전</td>
						<td class="class_admin_table_blank" align="center"><input
							type="text" name="day_a_1" id="day_a_1" maxlength="3" size="5" value="">%</td>
						<td class="class_admin_table_head">2일전</td>
						<td class="class_admin_table_blank" align="center"><input
							type="text" name="day_a_2" id="day_a_2" maxlength="3" size="5" value="">%</td>
						<td class="class_admin_table_head">3일전</td>
						<td class="class_admin_table_blank" align="center"><input
							type="text" name="day_a_3" id="day_a_3" maxlength="3" size="5" value="">%</td>
					</tr>
					<tr>
						<td class="class_admin_table_head">4일전</td>
						<td class="class_admin_table_blank" align="center"><input
							type="text" name="day_a_4" id="day_a_4" maxlength="3" size="5" value="">%</td>
						<td class="class_admin_table_head">5일전</td>
						<td class="class_admin_table_blank" align="center"><input
							type="text" name="day_a_5" id="day_a_5" maxlength="3" size="5" value="">%</td>
						<td class="class_admin_table_head">6일전</td>
						<td class="class_admin_table_blank" align="center"><input
							type="text" name="day_a_6" id="day_a_6" maxlength="3" size="5" value="">%</td>
						<td class="class_admin_table_head">7일전</td>
						<td class="class_admin_table_blank" align="center"><input
							type="text" name="day_a_7" id="day_a_7" maxlength="3" size="5" value="">%</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>

	<br>
	<table width="700" border="0" cellspacing="1" cellpadding="2"
		class="class_admin_table">
		<tr>
			<td height="25" class="class_admin_table_head" width="100"
				align="center"><b>이용안내</b></td>
			<td class="class_admin_table_blank" colspan="3" align="center">
				<textarea name="intro" cols="70" style="width: 97%; height: 270px;"
					class="gray">예약 안내 페이지, 예약 3단계 이용안내에 들어가하는 내용

※ 예약전에 예약안내를 반드시 숙지하시고 예약을 하시기 바랍니다.
※ 사이트 이용료는 선입금제입니다. 예약후 입금하시면 관리자가 확인후 예약완료 처리해드립니다.

예약후 입금대기 시간은 12시간이며 사이트 이용금액을 100% 입금해주셔야 합니다. 입금이 되지 않을 경우 자동 취소되어 다른 캠퍼분께 기회가 넘어갑니다.

※ 예약은 실시간 예약을 통해서 예약해주시기 바랍니다.

※ 단체 예약은 전화 상담후 예약을 진행해 주시기바랍니다. 

※ 입촌시간 : 오후 2시 / 퇴촌시간 : 익일 12시
   (입촌시간은 오후 2시입니다. 입촌 시간전에 캠핑장에 들어오실수 없습니다.)

※ 주중은 일/월~목이며 주말은 공휴일 과 금요일, 토요일입니다.

※ 예약후 본인의 예약이 정상적으로 이루어 졌는데 실시간 예약창에서 확인 바랍니다. 
					</textarea>
			</td>
		</tr>
	</table>


	<br>
	<table width="700" border="0" cellspacing="1" cellpadding="2"
		class="class_admin_table_nocolor">
		<tr>
			<td height="25" align="center">
				<input type="submit"  value="정 보 등 록">
				<input type="button" name="submit" onclick="javascript:history.back();" value="돌아가기">
			</td>
		</tr>
	</table>
	
</form>


